-
Notifications
You must be signed in to change notification settings - Fork 68
A tracking utility for gathering the compile and/or runtime time, size, profiling and other statistics #4777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
41015d0
to
1216480
Compare
7843958
to
9752167
Compare
9752167
to
d2a0de4
Compare
}, | ||
py::call_guard<py::gil_scoped_release>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't allow calling the callback function.
I would also add tests for this utility so that the code does not become outdated unexpectedly. |
@AndreyPavlenko Will it be possible to distinguish between configurations for the single script like our microbenchmarks? Like if I call kernel with different input parameters, I would probably want to get separate compile time for each input size. |
There will be separate reports for each compilation. |
Can you show how to distinguish between them? I think currently I only see a folder with kernel name and inside a lot of files with similar names, like |
Currently it has the same name as the kernel name and it's difficult to distinguish. A similar issue is discussed here - #4800 (comment) .
|
d2a0de4
to
55be9d9
Compare
Now constexprs are added to the kernel names and the grid is added to the kernel runs. |
55be9d9
to
7b81c66
Compare
To enable the tracking, set the environment variable
TRITON_TRACK_DUMP
to either1
,true
,yes
,on
,y
or a path to a directory where the tracking reports will be dumped.To add the profiling statistics to the reports, set the
TRITON_TRACK_PROFILE
environment variable.To track the kernel launches, set the
TRITON_TRACK_RUN
environment variable.Link #4716